﻿using System;
using System.Collections.Specialized;
using System.Web;

namespace wz.common
{
    public static class UriExternal
    {
        /// <summary>
        /// 获取参数
        /// </summary>
        /// <param name="uri"></param>
        /// <returns></returns>
        public static NameValueCollection GetQueryParams(this Uri uri)
        {
            NameValueCollection nvCol = HttpUtility.ParseQueryString(uri.Query);
            return nvCol;
        }
    }
}